<template>
  <div>
    <el-form label-position="top" v-for="(item) in list" :key="item.attr_id">
        <el-form-item :label="item.attr_name">
    <el-checkbox-group v-model="item.checked" size="small">
      <el-checkbox v-for="(obj,index) in item.attr_vals" :key="index"  :label="obj" border></el-checkbox>
    </el-checkbox-group>
      </el-form-item>
      </el-form>
  </div>
</template>
<script>
export default {
  name: 'Add',
  data () {
    return {
    }
  },
  props: {
    list: {
        type: Array, // 类型
        default: [], //给定默认值
    },
  },
  methods: {
  },
  created () {
  },
  mounted () {
  },
}
</script>
<style lang="scss" scoped>

</style>
